import { Component, OnInit } from '@angular/core';
import { ColumnType, SPage } from '@shared/components/table-page/table-page.component';

@Component({
  selector: 'app-report-check',
  templateUrl: './report-check.component.html',
  styles: []
})
export class ReportCheckComponent implements OnInit {
  config: SPage = {
    columns: [
      {
        index: 'id',
        title: '多选',
        type: ColumnType.checkbox,
      },
      {
        index: 'name',
        title: '姓名',
        filter: {
          placeholder: '姓名',
          type: 'select',
          items: [
            {label: '张三', value: '张三'},
            {label: '李四', value: '李四'},
          ]
        }
      },
      {
        index: 'age',
        title: '年龄',
      }
    ],
    editBtn: [
      {title: '查看详情'},
      {title: '删除', type: 'del'}
    ],
    showCheckBox: true,
    data: [
      {name: '张三', age: '24'},
    ]
  }
  operate(e): void {
    console.log(e);
  }
_console(e){
  console.log(e)
}
  constructor() { }

  ngOnInit() {
  }

}
